<extend name="desktop_default/template/base_index" />
<block name="area_header">
    <link rel="stylesheet" href="__CSS__/themeActivities/style.css">
</block>

<block name="area_top">
    <include file="desktop_default/template/user_bar" />
    <include file="desktop_default/template/shcart_bar" />
    <include file="desktop_default/template/nav_bar" />
</block>

<block name="area_content">
    <div class="activity-wrap main2-content">
        <div class="activity" data-starttime="{$zhutihuodong.main_time.start_time}000" data-endtime="{$zhutihuodong.main_time.end_time}000">
            <div class="act-banner"><img data-original="{$zhutihuodong.banner}"></div>
            <div class="dateline">
                <div class="tip">距活动结束</div>
                <div class="time"></div>
            </div>
        </div>
        <empty name="product_list">
            <div class="empty-product">暂时没有任何商品哦~~~</div>
        </empty>
        <div class="splist-wrap" style="display:none">
            <notempty name="product_list">
                <div class="sp-sort">
                    <dl>
                        <dt>分类：</dt>
                        <dd>
                            <if condition="I('cate',0) eq 0">
                                <a class="select" href="javascript:void(0);">全部</a>
                                <else/>
                                <a href="{:U('mengwu/themeActivities/index',array('block'=>I('block'),'cate'=>0))}">全部</a>
                            </if>
                        </dd>
                        <volist name="cate_list" id="vo">
                            <dd>
                                <if condition="$vo.id eq I('cate',0)">
                                    <a class="select" href="javascript:void(0);">{$vo.name}</a>
                                    <else/>
                                    <a href="{:U('mengwu/themeActivities/index',array('block'=>I('block'),'cate'=>$vo['id']))}">{$vo.name}</a>
                                </if>
                            </dd>
                        </volist>
                    </dl>
                    <volist name="cate_props" id="vo">
                        <dl>
                            <dt>{$vo.name}：</dt>
                            <volist name="vo.property_value" id="vo1">
                                <dd>
                                    <if condition="($vo1['prop_id'] eq I('prop')) AND ($vo1['id'] eq I('propvalue'))">
                                        <a class="select">{$vo1.valuename}</a>
                                        <else/>
                                        <a href="{:U('mengwu/themeActivities/index',array('block'=>I('block'),'cate'=>I('cate',0),'prop'=>$vo1['prop_id'],'propvalue'=>$vo1['id']))}">{$vo1.valuename}</a>
                                    </if>
                                </dd>
                            </volist>
                        </dl>
                    </volist>
                </div>
                <div class="sp-order">
                    <dl>
                        <dt>排序：</dt>
                        <dd>
                            <if condition="I('order',10) eq 10">
                                <a class="btn btn-order selected" href="javascript:void(0);">默认<i class="iconfont icon-arrowdown" style="display: none"></i></a>
                                <else />
                                <a class="btn btn-order" href="{:U('mengwu/themeActivities/index',array('block'=>I('block'),'cate'=>I('cate',0),'order'=>10))}">默认<i class="iconfont icon-arrowdown" style="display: none"></i></a>
                            </if>
                        </dd>
                        <dd>
                            <if condition="I('order',10) eq 11">
                                <a class="btn btn-order selected" href="javascript:void(0);">人气</a>
                                <else/>
                                <a class="btn btn-order" href="{:U('mengwu/themeActivities/index',array('block'=>I('block'),'cate'=>I('cate',0),'order'=>11))}">人气</a>
                            </if>
                        </dd>
                        <dd>
                            <if condition="I('order',10) eq 12">
                                <a class="btn btn-order selected" href="javascript:void(0);">销量</a>
                                <else/>
                                <a class="btn btn-order" href="{:U('mengwu/themeActivities/index',array('block'=>I('block'),'cate'=>I('cate',0),'order'=>12))}">销量</a>
                            </if>
                        </dd>
                    </dl>
                    <span class="total">共计<em>{$product_count|default=0}</em>个商品</span>
                </div>
                <div class="sp-list">
                    <ul>
                        <volist name="product_list" id="vo">
                            <li class="product-item">
                                <a class="sp-li" href="{:U('mengwu/spdetail/index',array('id'=>$vo['product_id'],'gid'=>$group_id))}" target="_blank"></a>
                                <div class="sp-img"><img src="{$vo.img}"></div>
                                <div class="caption">
                                    <!--<em class="zhekou">8.8折/</em>-->
                                    <span>{$vo.name}</span>
                                </div>
                                <div class="price">
                                    <em class="rmb">￥</em></small>{$vo.group_price}
                                </div>
                            </li>
                        </volist>
                    </ul>
                </div>
                {$show}
            </notempty>
        </div>
    </div>
</block>

<block name="area_footer">
    <include file="desktop_default/template/footer_ad" />
    <include file="desktop_default/template/footer_nav" />
    <include file="desktop_default/template/footer_bottom" />
    <script type="text/javascript" src="__JS__/themeActivities/common.js"></script>
</block>